import request from '@/utils/request'

// 查询医嘱作废列表 (分页)
export function selectPageOrdersCancelLog(query) {
    return request({
        url: '/business/ordersCancelLog/selectPage',
        method: 'get',
        params: query
    })
}

// 查询医嘱作废列表 (不分页)
export function listOrdersCancelLog(query) {
    return request({
        url: '/business/ordersCancelLog/list',
        method: 'get',
        params: query
    })
}

// 查询医嘱作废详细
export function getOrdersCancelLog(logId) {
    return request({
        url: '/business/ordersCancelLog/' + logId,
        method: 'get'
    })
}

// 新增医嘱作废
export function addOrdersCancelLog(data) {
    return request({
        url: '/business/ordersCancelLog',
        method: 'post',
        data: data
    })
}

// 修改医嘱作废
export function updateOrdersCancelLog(data) {
    return request({
        url: '/business/ordersCancelLog',
        method: 'put',
        data: data
    })
}

// 删除医嘱作废
export function delOrdersCancelLog(logId) {
    return request({
        url: '/business/ordersCancelLog/' + logId,
        method: 'delete'
    })
}
